package com.construction_Safety.region.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.construction_Safety.common.annotation.Excel;
import com.construction_Safety.common.core.domain.BaseEntity;

/**
 * 员工区域管理对象 c_user_region
 * 
 * @author yat
 * @date 2025-06-10
 */
public class CUserRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 区域id */
    @Excel(name = "区域id")
    private Integer regionId;

    /** 部门id */
    @Excel(name = "部门id")
    private Integer deptId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setRegionId(Integer regionId) 
    {
        this.regionId = regionId;
    }

    public Integer getRegionId() 
    {
        return regionId;
    }

    public void setDeptId(Integer deptId) 
    {
        this.deptId = deptId;
    }

    public Integer getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("regionId", getRegionId())
            .append("deptId", getDeptId())
            .toString();
    }
}
